<template>
  <div>
    <h1>name : {{ name }}</h1>
    <h1>age: {{ age }}</h1>
  </div>
</template>
<script>
export default {
  name: "Prop",
  props: {
    name: {
      type: String,
      required: true
    },
    age: {
      required: true,  
      validator: function(age) {
        return age > 20;
      }
    }
  },
  methods: {

  }
};
</script>
